package ink.carnation.imtalk.service;

import ink.carnation.imtalk.model.po.UserPo;
import ink.carnation.imtalk.model.vo.FriendVO;
import io.swagger.models.auth.In;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface FriendService {
    int addFriend(Integer userId, Integer friendId);

    int confirmAddFriend(Integer userId, Integer friendId);

    Boolean deleteFriend(Integer userId, Integer friendId);

    List<UserPo> getFriendByNickName(HttpServletRequest request, String nickName);

    List<FriendVO> getFriendListByUserId(HttpServletRequest request);

    UserPo getFriendByFriendId(HttpServletRequest request, Integer friendId);

    void setFriendVOActive(List<FriendVO> friendVOList);

    List<FriendVO> getFriends(Integer userId);
}
